﻿using CommunityToolkit.Mvvm.ComponentModel;
using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZoneLine.Common;

namespace ZoneLine.Models
{
    [Index(nameof(HOP040StationResult) + "index_1", nameof(AbsScanCode), IsUnique = false)]
    [Index(nameof(HOP040StationResult) + "_tid", nameof(CreateTime), IsUnique = false)]
    public class HOP040StationResult : HStationResultBase
    {
        private float _threadLength;

        [DgColumnAttr("螺纹长度")]
        public float ThreadLength
        {
            get { return _threadLength; }
            set => SetProperty(ref _threadLength, value);
        }

        private string _nutScanCode;

        [DgColumnAttr("螺纹长度")]
        public string NutScanCode
        {
            get { return _nutScanCode; }
            set => SetProperty(ref _nutScanCode, value);
        }

        private float _tigtenTorque;

        [DgColumnAttr("拧紧力矩")]
        public float TigtenTorque
        {
            get { return _tigtenTorque; }
            set => SetProperty(ref _tigtenTorque, value);
        }

        private float _tigtenAngle;

        [DgColumnAttr("拧紧角度")]
        public float TigtenAngle
        {
            get { return _tigtenAngle; }
            set => SetProperty(ref _tigtenAngle, value);
        }

        private string _nutScanCode2;

        /// <summary>
        /// 螺母批次码2
        /// </summary>
        public string NutScanCode2
        {
            get { return _nutScanCode2; }
            set => SetProperty(ref _nutScanCode2, value);
        }

        private string _componentScanCode;

        /// <summary>
        /// 合件批次码
        /// </summary>
        public string ComponentScanCode
        {
            get { return _componentScanCode; }
            set => SetProperty(ref _componentScanCode, value);
        }

        private string _dustCapScanCode;

        /// <summary>
        /// 防尘盖批次码
        /// </summary>
        public string DustCapScanCode
        {
            get { return _dustCapScanCode; }
            set => SetProperty(ref _dustCapScanCode, value);
        }


        private string _result2;
        /// <summary>  
        /// 结论  
        /// </summary>  
        [DgColumnAttr("结论2")]
        public string Result2
        {
            get { return _result2; }
            set { SetProperty(ref _result2, value); } // 假设 SetProperty 方法存在  
        }

    }
}